import os
import time

while True:
    cur_utc_time = time.time()
    cur_dgt_time = time.localtime(cur_utc_time)
    #print(cur_dgt_time)
    if cur_dgt_time[3] >= 19:
        print('Shutdown the computer now...')
        os.system('taskkill /im emule.exe')
        os.system('shutdown -s -t 0')
    else:
        print('Sleep ...')
        time.sleep(60 * 5)
        